const { fork } = require("child_process");
const sub = fork(`${__dirname}/sub.js`);

sub.on("message", (m) => {
  console.log("get message", m);
});

sub.send({ hello: "subprocess" });
